package com.whpost.admin.controller.stamp.h5;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("/h5/addr")
public class AddrController {

    @RequestMapping(value="/query")
    public String query(String lx,Model model) {
        model.addAttribute("lx", lx);
        return "stamp/h5/addr/query";
    }

    @RequestMapping(value="/add")
    public String add(String callback,String lx,Model model) {
        model.addAttribute("lx", lx);
        model.addAttribute("callback", callback);
        return "stamp/h5/addr/add";
    }

    @RequestMapping(value="/area")
    public String area(String prov,String city,Model model,String county) {
        model.addAttribute("prov", prov);
        model.addAttribute("city", city);
        model.addAttribute("county", county);
        return "stamp/h5/addr/area";
    }
}
